<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta data-th-replace="common/meta :: meta">
    <title>格物数据后台管理平台</title>
    <link rel="stylesheet" data-th-replace="common/Link :: link">
</head>
<body class="js-route-flag js-department">
<div class="container-fluid basePadding">
    <div class="row">
        <div class="row">
            <div class="col-md-6 col-xs-7">
                <form class="form-inline roleForm">
                    <!--<div class="form-group">-->
                        <!--<input type="text" class="form-control" id='name' placeholder="输入部门名称">-->
                    <!--</div>-->
                    <!--<button type="submit" class="btn btn-gew" id="search"><i class="fa fa-search"></i>检索</button>-->
                </form>
            </div>
            <div class="col-md-6 col-xs-5">
                <button class="btn btn-gew pull-right addBtn" type="button" id="addDepartment"><i class="fa fa-plus"></i>添加</button>
            </div>
        </div>
        <div class="table-responsive marginTop">
            <table class="table table-hover" id="bootstrapTable"></table>
        </div>
    </div>
    <!--添加以及修改-->
    <div id="myDepartmentModal" class="hidden-gew">
        <form class="form-horizontal">
            <div class="box-body">
                <input type="hidden" id="id" name="id">
                <input type="hidden" id="pid" name="pid">
                <div class="form-group">
                    <label for="pname" class="col-sm-2 control-label">父级名称：</label>
                    <div class="col-sm-10">
                        <input type="text" readonly="readonly" class="form-control" name="pname" id="pname" placeholder="父级名称">
                    </div>
                </div>
                <div class="form-group">
                    <label for="departmentName" class="col-sm-2 control-label">部门名称</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="departmentName" placeholder="请输入部门名称...">
                    </div>
                </div>
                <div class="form-group">
                    <label for="describes" class="col-sm-2 control-label">部门描述</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="describes" placeholder="请输入部门描述...">
                    </div>
                </div>
                <div class="form-group">
                    <label for="code" class="col-sm-2 control-label">部门编号</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="code" placeholder="请输入部门编号...">
                    </div>
                </div>
                <div class="form-group">
                    <label for="sort" class="col-sm-2 control-label">排序</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="sort" placeholder="请输入排序...">
                    </div>
                </div>
            </div>
            <div class="box-footer">
                <button type="button" id="btn_save" class="btn btn-gew"><i class="fa fa-floppy-o"></i>保存</button>
                <button type="button" class="btn btn-default-gew btn_close"><i class="fa fa-times"></i>关闭</button>
            </div>
        </form>
    </div>
    <script data-main="js/main.js" src="js/lib/require.min.js" defer async="true"></script>
</div>
</body>
</html>